package com.study.dao;

import com.study.entity.system.Permission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 权限数据访问接口
 * @Author wfw
 * @Date 2020/07/13 10:53
 */
public interface PermissionDao extends JpaRepository<Permission, String>, JpaSpecificationExecutor<Permission> {
    List<Permission> findByTypeAndPid(int type, String pid);

    List<Permission> findByTypeAndEnVisible(int type, String enVisible);
}
